package Controllers;

import Entities.Student;
import Facades.StudentFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "studentController")
@ViewScoped
public class StudentController extends AbstractController<Student> implements Serializable {

    @EJB
    private StudentFacade ejbFacade;

    public StudentController() {
        super(Student.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }
}
